import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ManagerComponent } from './views/manager/manager.component';
import { ArticleCreateComponent } from './views/article-create/article-create.component';

const routes: Routes = [{
  path: '',
  component: ManagerComponent,
  data: {
    breadcrumb: 'Management'
  },
  children: [{
    path: 'create',
    component: ArticleCreateComponent,
    data: {
      breadcrumb: 'Create'
    }
  }, {
    path: 'update/:id',
    component: ArticleCreateComponent,
    data: {
      breadcrumb: 'Update'
    }
  }]
}];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ManagerRoutingModule { }
